import request from '@/utils/request'

//更新
export const userinfoUpService = ({
  id,
  name,
  phone,
  address,
  sex,
  age,
  tar
}) => {
  return request.put('admininfo/up', {
    id,
    name,
    phone,
    address,
    sex,
    age,
    tar
  })
}

//更新头像
export const userAvatarUpService = ({ id, avatar, tar }) => {
  return request.patch('admininfo/up', {
    id,
    avatar,
    tar
  })
}
//更新密码
export const userpasswordUpService = ({ id, password, tar }) => {
  return request.patch('admininfo/uppassword', {
    id,
    password,
    tar
  })
}
